ccd81f5a343864f09cb27d7cef6f03243dca5edf,platform/lang-impl/src/com/intellij/execution/console/ConsoleFoldingConfigurable.java,MyAddDeleteListPanel,showEditDialog,#String#,103
Before Change
@Nullable
private String showEditDialog(final String initialValue) {
return Messages.showInputDialog(this, myQuery, "Folding pattern", Messages.getQuestionIcon(), initialValue, null);
}
void resetFrom(List<String> patterns) {
After Change
@Nullable
private String showEditDialog(final String initialValue) {
return Messages.showInputDialog(this, myQuery, "Folding pattern", Messages.getQuestionIcon(), initialValue, new InputValidator() {
@Override
public boolean checkInput(String inputString) {
return true;
}
@Override
public boolean canClose(String inputString) {
if (StringUtil.isEmpty(inputString)) {
ApplicationManager.getApplication().invokeLater(new Runnable() {
@Override
public void run() {
Messages.showErrorDialog("Console folding rule string cannot be empty", "Console Folding Rule Adding Error");
}
});
return false;
}
return true;
}
});
}
void resetFrom(List<String> patterns) {